<template>
  <div>
    <!-- 三级联动组件（三级联动组件已经全局注册，不需要注册） -->
    <TypeNav></TypeNav>
    <!--  -->
    <ListContainer />
  
    <Rank />

  </div>
</template>

<script>
// 引入其他组件
import ListContainer from "@/views/Home/LIstContainer";
import TodayRecommend from "@/views/Home/Today-Recommend";
import Rank from "@/views/Home/Rank";


import { mapState } from "vuex";
export default {
  name: "Home",
  components: {
    ListContainer,
    TodayRecommend,
    Rank

  },
  mounted(){
    //派发action，获取floor组件数据
    this.$store.dispatch("getFloorList");
  },
  computed: {
    ...mapState({
      floorList: (state) => {
        return state.home.floorList;
      },
    }),
  },
 
};
</script>

<style>
</style>